package com.mxw.component.security.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Description TODO
 * @Author RingKo
 * @Date 2021/12/7 22:21
 * @Version 1.0
 */
@Data
@ConfigurationProperties(prefix = "gateway.token")
public class CloudSecurityProperties {

  /**
   * 是否只能通过网关获取资源
   * 默认为True
   */
  @Value("${gateway.token.onlyFetchByGateway:true}")
  private Boolean onlyFetchByGateway;

  @Value("${gateway.token.value}")
  private String gatewayTokenValue;

  @Value("${gateway.token.header}")
  private String gatewayTokenHeader;
}
